package com.gobo.easyexcel;

import com.alibaba.excel.EasyExcel;
import com.gobo.easyexcel.pojo.DataDemo;

import java.util.ArrayList;
import java.util.List;

public class ReadExcel {

    public static void main(String[] args) {

        String fileName = "F:/12.xlsx";
        List<DataDemo> list = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            DataDemo dataDemo = new DataDemo();
            dataDemo.setOneString("前端"+i);
            dataDemo.setTwoString("VUE"+i);
            list.add(dataDemo);
        }
        EasyExcel.write(fileName, DataDemo.class).sheet("表格栏位").doWrite(
                list
        );

    }

}
